package com.demo.design01.service;

import com.alibaba.fastjson.JSON;
import com.demo.design01.mq.CreateAccount;

/**
 * @author ytj
 * @date 2022/2/21
 */
public class CreateAccountMqService {

    public void onMessage(String message){
        CreateAccount mq=JSON.parseObject(message,CreateAccount.class);
        mq.getNumber();
        mq.getAccountDate();
    }
}
